package data.app.receive.message
{
	import data.app.packCode.MessagePackCode;
	
	import data.app.events.MessageEvent;
	
	import flash.events.EventDispatcher;
	
	public class MessageReceiveData extends EventDispatcher
	{
		public function MessageReceiveData()
		{
		}
		
		/**
		 * 事件处理
		 * @param dataPack 数据包
		 */		
		public function dispatcher(dataPack:Object):void
		{
			var packCode:int=int(dataPack.packCode);//取得数据包最子级编号
			switch(packCode)
			{
				case MessagePackCode.MESSAGE_SCENE://屏幕提示语
					dispatchEvent(new MessageEvent(MessageEvent.MESSAGE_SCENE, dataPack));
					break;
			}
		}
	}
}